package com.woniuxy.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.user.dto.AddUserDto;
import com.woniuxy.user.dto.SystemUserDto;
import com.woniuxy.user.entity.SystemUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lzj
 * @since 2023-11-07
 */
public interface ISystemUserService extends IService<SystemUser> {

    SystemUserDto getUserByPhone(String userPhone);

    int batchDelete(List<Integer> ids);

    Page<SystemUser> getByUserSex(Integer userSex, Integer pageNum, Integer pageSize);

    void addUser(AddUserDto addUserDto);

    Page<SystemUser> getByUserName(String userName, Integer pageNum, Integer pageSize);
}
